package com.gh.common.exception;

/**
 * date: 2020/7/14 18:28
 * 状态码枚举类
 * @author GH
 * QQ 1124813753
 */
public enum CodeEnum {
    //数据校验异常
    VALID_EXCEPTION(10401, "数据校验失败"),
    //系统未知异常
    UNKNOWN_EXCEPTION(80500, "系统未知异常");

    private Integer code;
    private String msg;

    CodeEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
